<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}

define('VAN_VER', '1.7.0');


// //设置框架
require_once get_template_directory() . '/inc/template-csf.php';

/**
 * 加载整体配置文件
 */
require_once(get_theme_file_path('/inc/inc.php'));



/**
 * 示例0：加载子主题的自定义CSS
 * @Author   2 Dog
 * @DateTime 2021-01-16T23:51:11+0800
 * @return   [type]                   [description]
 */

function van_css() {
    if(!is_admin()){
	        wp_enqueue_style('van_home', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/van_home.css', array());
	     }
	    if(is_home() && !is_admin()){
	        wp_enqueue_style('van_home_gadgets', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/van_home_gadgets.css', array());
	    }
    
    
    //底部宣传模块CSS
    if(_van('footer_new')){
        wp_enqueue_style('footer_new_css', trailingslashit(get_stylesheet_directory_uri()) .  'assets/css/footer/footer_new.css');  
    }
}
add_action('wp_enqueue_scripts', 'van_css', 10);

